package com.scu.phototabuser;

import com.google.gson.internal.Streams;
import com.scu.phototabuser.data.source.local.User;

/**
 * Created by tianfei on 2017/4/8.
 */

public class Consts {

    public static User mUser =new User();

    //*********URL Start**********//

    public static final String ipAddr="192.168.31.194:8000";

    private static final String baseUrl = "http://192.168.31.194:8000%s.action";


    public static final String LoginURL=String.format(baseUrl,"/session/user/login");
    public static final String SignUpURL=String.format(baseUrl,"/session/user/create");
    public static final String LogoutURL=String.format(baseUrl,"/session/token/logout");
    public static final String UpdateUserInfoURL = String.format(baseUrl,"/session/token/update");
    public static final String QueryUserInfoURL = String.format(baseUrl,"/session/token/info");
    public static final String RefreshTokenURL = String.format(baseUrl,"/session/refresh/token");
    public static final String LoginWithToken = String.format(baseUrl,"/session/token/login");
    public static final String SendFindPwdEmailURL = String.format(baseUrl,"/session/user/pass/send1email");

    //*********URL End************//

    static final String CRASH_FILE_PATH="/sdcard/phototab/crash/";

    public static final String NO_NETWORK ="无网络连接";
    public static final String UNKNOWN_ERR="未知错误";

    public static final String OK = "好";
    public static final String CANCEL = "取消";

    public static final int IMAGE_VIEW_COVER_ALPHA = 100;

    //PUSH 相关
    public static final String DEVICE_ID = "DEVICE_ID";

    public static final String EMULATOR_DEVICE_ID = "EMULATOR_DEVICE_ID";

    public static final String NOTIFICATION_ICON = "NOTIFICATION_ICON";

    public static final String SETTINGS_NOTIFICATION_ENABLED = "SETTINGS_NOTIFICATION_ENABLED";

    public static final String SETTINGS_SOUND_ENABLED = "SETTINGS_SOUND_ENABLED";

    public static final String SETTINGS_VIBRATE_ENABLED = "SETTINGS_VIBRATE_ENABLED";

    public static final String SETTINGS_TOAST_ENABLED = "SETTINGS_TOAST_ENABLED";

    public static final String PUSHADDR="192.168.23.2";

    public static final int PUSHPORT=9090;

    // NOTIFICATION 相关

    public static final String NOTIFICATION_ID = "NOTIFICATION_ID";

    public static final String NOTIFICATION_API_KEY = "NOTIFICATION_API_KEY";

    public static final String NOTIFICATION_TITLE = "NOTIFICATION_TITLE";

    public static final String NOTIFICATION_MESSAGE = "NOTIFICATION_MESSAGE";

    public static final String NOTIFICATION_URI = "NOTIFICATION_URI";

    // INTENT ACTIONS
    public static final String ACTION_MINEDETAIL_CHANGE_USER_CHOSEN_TYPE="CHANGE_USER_CHOSEN_TYPE";

    //登录相关
    public static final String EMAIL_ADDR_ERR="邮箱格式错误";
    public static final String PASSWORD_FORMAT_ERR="密码至少4位";
    public static final String CONTAINS_BAD_CHAR="非法字符！";
    public static final String PASSWORDS_NOT_EQUALS="两次密码不一致";

    //用户喜好相关
    public static final int IMAGE_COLUMNS = 2;
    public static final String CHOOSE_GROUP_ACTIVITY_SHOW_HELP_MESSAGE = "Tips: 向左滑动图片可以显示内容哦";
    public static final String CHOOS_TYPES="选择你喜欢的类型";
    public static final String NO_TYPE_WILL_BE_CHOSEN = "将不会选择任何一个喜好";
    public static final String CONTINUE = "继续？";

    public static final String REQUEST_IMG_TYPES_URL = String.format(baseUrl,"/fixme");

}
